package com.xiaoyu.shenyou.shenyouv1.mapper;

import com.xiaoyu.shenyou.shenyouv1.entity.AutoConfigEntity;
import com.xiaoyu.shenyou.shenyouv1.entity.AutoLogEntity;
import com.xiaoyu.shenyou.shenyouv1.entity.AutoUserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AutoPlayMapper {
    public void insertUserInfo(AutoUserEntity autoUser);

    public AutoUserEntity selectUserInfoById(@Param("userId") int userId);

    public void updateAutoUser(AutoUserEntity isAutoUser);

    public List<AutoUserEntity> selectAllAutoUsers();

    public void updateAutoUserIsAuto(AutoUserEntity isPrepare);

    public AutoLogEntity selectAutoLogLast(AutoUserEntity autoUser);

    public void updateAutoLog(AutoLogEntity autoLog);

    public List<AutoLogEntity> selectAutoLogsBySize(@Param("user_id") int user_id, @Param("size") int size);

    public void insertAutoLogByUserId(AutoLogEntity autoLog);

    public AutoConfigEntity selectAutoConfigById(@Param("user_id") int user_id);

    public void updateAutoConfig(AutoConfigEntity autoConfig);

    public void insertAutoConfigById(AutoConfigEntity autoConfig);
}
